package com.mcf.world.entity;

import com.baomidou.mybatisplus.core.incrementer.IdentifierGenerator;

import java.util.concurrent.atomic.AtomicInteger;

public class CustomIdGenerator implements IdentifierGenerator {
    final AtomicInteger ai=new AtomicInteger(100);
    public Integer nextId(Object entity) {

        final Integer id=ai.getAndAdd(5);
        return id;
    }
}
